import { useIntl } from "@umijs/max";

// eslint-disable-next-line react-hooks/rules-of-hooks
const intl = useIntl();
export function changeLan(msg: string) {
    const rmsg = intl.formatMessage({ id: msg });
    return rmsg;
}
